package com.tuanzi.loan.business.repository.family;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.tuanzi.loan.business.entity.family.LoanApiOrder;
import com.tuanzi.loan.business.repository.family.custom.LoanApiOrderRepositoryCustom;

public interface LoanApiOrderRepository extends LoanApiOrderRepositoryCustom, JpaRepository<LoanApiOrder, Long> {

	List<LoanApiOrder> findAllByUserId(Long userId);
	
	Long countByUserIdAndSourceId(Long userId, Long sourceId);
}
